from torch import nn
import copy

def clone_module_list(module: nn.Module, n: int):

    return nn.ModuleList([copy.deepcopy(module) for _ in range(n)])